package cn.fengshenghospital.service;

import cn.fengshenghospital.entity.Article;
import cn.fengshenghospital.entity.Logs;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ArticleService {
    //根据菜单查询文章内容
    List<Article> getArticleByMid(int mid, int startSize, int endSize)throws Exception;

    //查询总页数
    int getArticleCount(int mid)throws Exception;

    //根据条件搜索文章
    List<Article> searchArticle(Map map)throws Exception ;

    //根据条件搜索文章总页数
    int searchArticleCount(Map map)throws Exception ;

    //根据文章编号搜索文章内容
    Article getArticleById(int id)throws Exception ;
    //插入文章
    int addArticleById(Article article, Logs logs) throws Exception;
    //修改文章
    int updateArticle(Article article, Logs logs) throws Exception;
    //查询文章
    List<Article> queryArticle(Map map);

    //查询文章总数
    int queryArticleCount(Map map);
}
